#include "FacadeTea.h"
#include <QDebug>

#include "Tea.h"
#include "TeaSet.h"
#include "Water.h"

#include "UI/ModRun/Output/FactoryOutput.h"

FacadeTea::FacadeTea()
{
}

FacadeTea::~FacadeTea()
{

}

//获得一杯茶;
void FacadeTea::HaveTea()
{
    Water water;
    water.shaoWater();
    Tea tea;
    tea.paoWater();
    TeaSet teaset;
    teaset.OneTea();

    QString strOutput = "FacadeTea::HaveTea:获得一杯茶";
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
}

